

import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.JButton;
public class SeleccionaEstrategiaMundo {

	private JFrame jFrame = null;  //  @jve:decl-index=0:visual-constraint="253,20"
	private JPanel jContentPane = null;
	private JLabel jLabel = null;
	protected JLabel localizacion = null;
	private Principal application;
	private JButton jButtonAnchura = null;
	private JButton jButtonProfundidad = null;
	protected JLabel info = null;
	private JButton jButtonEscaladaSimple = null;
	private JButton jButtonMaximaPendiente = null;
	private JButton jButtonpodaab = null;
	private JButton jButtonvoraz = null;
	public SeleccionaEstrategiaMundo(Principal ap){
		application = ap;
	}
	/**
	 * This method initializes jFrame	
	 * 	
	 * @return javax.swing.JFrame	
	 */
	protected JFrame getJFrame() {
		if (jFrame == null) {
			jFrame = new JFrame();
			jFrame.setSize(new Dimension(393, 319));
			jFrame.setTitle("Estrategias para recorrer el mundo.");
			jFrame.setContentPane(getJContentPane());
		}
		return jFrame;
	}

	/**
	 * This method initializes jContentPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			info = new JLabel();
			info.setBounds(new Rectangle(39, 228, 292, 30));
			info.setText("");
			localizacion = new JLabel();
			localizacion.setBounds(new Rectangle(90, 42, 264, 27));
			localizacion.setText("");
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(6, 7, 203, 25));
			jLabel.setText("Selecciona estrategia para:");
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(localizacion, null);
			jContentPane.add(getJButtonAnchura(), null);
			jContentPane.add(getJButtonProfundidad(), null);
			jContentPane.add(info, null);
			jContentPane.add(getJButtonEscaladaSimple(), null);
			jContentPane.add(getJButtonMaximaPendiente(), null);
			jContentPane.add(getJButtonpodaab(), null);
			jContentPane.add(getJButtonvoraz(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButtonAnchura	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonAnchura() {
		if (jButtonAnchura == null) {
			jButtonAnchura = new JButton();
			jButtonAnchura.setBounds(new Rectangle(17, 73, 92, 30));
			jButtonAnchura.setText("Anchura");
			jButtonAnchura.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("Boton anchura apretado"); 
					application.estrategia(1);
				}
			});
		}
		return jButtonAnchura;
	}

	/**
	 * This method initializes jButtonProfundidad	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonProfundidad() {
		if (jButtonProfundidad == null) {
			jButtonProfundidad = new JButton();
			jButtonProfundidad.setBounds(new Rectangle(136, 74, 103, 31));
			jButtonProfundidad.setText("Profundidad");
			jButtonProfundidad.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("Boton de profundidad apretado"); 
					application.estrategia(2);
				}
			});
		}
		return jButtonProfundidad;
	}
	/**
	 * This method initializes jButtonEscaladaSimple	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonEscaladaSimple() {
		if (jButtonEscaladaSimple == null) {
			jButtonEscaladaSimple = new JButton();
			jButtonEscaladaSimple.setBounds(new Rectangle(117, 149, 134, 26));
			jButtonEscaladaSimple.setText("Escalada simple");
			jButtonEscaladaSimple.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("Boton escalada simple apretado"); 
					application.estrategia(4);
				}
			});
		}
		return jButtonEscaladaSimple;
	}
	/**
	 * This method initializes jButtonMaximaPendiente	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonMaximaPendiente() {
		if (jButtonMaximaPendiente == null) {
			jButtonMaximaPendiente = new JButton();
			jButtonMaximaPendiente.setBounds(new Rectangle(23, 117, 150, 26));
			jButtonMaximaPendiente.setText("Maxima pendiente");
			jButtonMaximaPendiente.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("Boton maxima pendiente apretado"); 
					application.estrategia(5);
				}
			});
		}
		return jButtonMaximaPendiente;
	}
	/**
	 * This method initializes jButtonpodaab	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonpodaab() {
		if (jButtonpodaab == null) {
			jButtonpodaab = new JButton();
			jButtonpodaab.setBounds(new Rectangle(195, 117, 137, 26));
			jButtonpodaab.setText("A Estrella");
			jButtonpodaab.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("Boton A estrella apretado"); 
					application.estrategia(7);
				}
			});
		}
		return jButtonpodaab;
	}
	/**
	 * This method initializes jButtonvoraz	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonvoraz() {
		if (jButtonvoraz == null) {
			jButtonvoraz = new JButton();
			jButtonvoraz.setBounds(new Rectangle(258, 76, 82, 26));
			jButtonvoraz.setText("Voraz");
			jButtonvoraz.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("Boton voraz apretado"); 
					application.estrategia(3);
				}
			});
		}
		return jButtonvoraz;
	}

}
